package org.omg.RTCORBA;

/**
 * Generated from IDL definition of alias "NetworkPriority"
 * 
 * @author orbas IDL compiler
 */

public final class NetworkPriorityHelper {
	private static org.omg.CORBA.TypeCode _type = null;

	public static void insert(org.omg.CORBA.Any any, int s) {
		org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
		any.type(type());
		write(out, s);
		any.read_value(out.create_input_stream(), type());
	}

	public static int extract(final org.omg.CORBA.Any any) {
		return read(any.create_input_stream());
	}

	public static org.omg.CORBA.TypeCode type() {
		if (_type == null) {
			_type = org.omg.CORBA.ORB.init().create_alias_tc(
					org.omg.RTCORBA.NetworkPriorityHelper.id(),
					"NetworkPriority",
					org.omg.CORBA.ORB.init().get_primitive_tc(
							org.omg.CORBA.TCKind.from_int(3)));
		}
		return _type;
	}

	public static String id() {
		return "IDL:org/omg/RTCORBA/NetworkPriority:1.0";
	}

	public static int read(final org.omg.CORBA.portable.InputStream _in) {
		int _result;
		_result = _in.read_long();
		return _result;
	}

	public static void write(final org.omg.CORBA.portable.OutputStream _out,
			int _s) {
		_out.write_long(_s);
	}
}
